/*  This file is part of Phantom Power.
 *  Copyright (C) 2010 Jacob Dawid
 *
 *  Phantom Power is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Phantom Power is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Phantom Power. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef WIFI_DIALOG_H
#define WIFI_DIALOG_H

#include <QWidget>
#include <QTextEdit>
#include <QPushButton>
#include <QList>
#include <QLabel>
#include <QSettings>

class wifiDialog : public QWidget
{
	Q_OBJECT
	public:
		wifiDialog();
		~wifiDialog();
	
	private:		
		void setupUserInterface();

		QWidget* parentWidget;
		QTextEdit* ipAddress[5];
		QPushButton* _connectButton;
		QSettings* settings;

		bool connectionState;

	public slots:
		void connectionButtonTriggered();
		void synchronize();
	
	signals:
		void establishConnection(int ip1, int ip2, int ip3, int ip4, int port);
		void cutConnection();
};

#endif
